package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhaomuxinxiMapper;
import com.ruoyi.system.domain.Zhaomuxinxi;
import com.ruoyi.system.service.IZhaomuxinxiService;

/**
 * 招募信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-05
 */
@Service
public class ZhaomuxinxiServiceImpl implements IZhaomuxinxiService 
{
    @Autowired
    private ZhaomuxinxiMapper zhaomuxinxiMapper;

    /**
     * 查询招募信息
     * 
     * @param id 招募信息主键
     * @return 招募信息
     */
    @Override
    public Zhaomuxinxi selectZhaomuxinxiById(Long id)
    {
        return zhaomuxinxiMapper.selectZhaomuxinxiById(id);
    }

    /**
     * 查询招募信息列表
     * 
     * @param zhaomuxinxi 招募信息
     * @return 招募信息
     */
    @Override
    public List<Zhaomuxinxi> selectZhaomuxinxiList(Zhaomuxinxi zhaomuxinxi)
    {
        return zhaomuxinxiMapper.selectZhaomuxinxiList(zhaomuxinxi);
    }

    /**
     * 新增招募信息
     * 
     * @param zhaomuxinxi 招募信息
     * @return 结果
     */
    @Override
    public int insertZhaomuxinxi(Zhaomuxinxi zhaomuxinxi)
    {
        return zhaomuxinxiMapper.insertZhaomuxinxi(zhaomuxinxi);
    }

    /**
     * 修改招募信息
     * 
     * @param zhaomuxinxi 招募信息
     * @return 结果
     */
    @Override
    public int updateZhaomuxinxi(Zhaomuxinxi zhaomuxinxi)
    {
        return zhaomuxinxiMapper.updateZhaomuxinxi(zhaomuxinxi);
    }

    /**
     * 批量删除招募信息
     * 
     * @param ids 需要删除的招募信息主键
     * @return 结果
     */
    @Override
    public int deleteZhaomuxinxiByIds(Long[] ids)
    {
        return zhaomuxinxiMapper.deleteZhaomuxinxiByIds(ids);
    }

    /**
     * 删除招募信息信息
     * 
     * @param id 招募信息主键
     * @return 结果
     */
    @Override
    public int deleteZhaomuxinxiById(Long id)
    {
        return zhaomuxinxiMapper.deleteZhaomuxinxiById(id);
    }
}
